//
//  WordErrorGroupSummaryManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/20.
//

#import "WordErrorGroupSummaryManager.h"

@implementation WordErrorGroupSummaryManager

-(NSString *)methodName{
    return @"/system/word/test/app/orderWrongResultList";
}


-(JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypeGET;
}


-(NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"page"] = @"1";
    NSString *wordNumber0 = [[NSUserDefaults standardUserDefaults]objectForKey:@"wordNumber"];
    if(wordNumber0){
        dict[@"limit"] = wordNumber0;
    }else{
        dict[@"limit"] = @"10";
    }
    return dict;
}

@end
